package cn.frank.framework.king.domain.vo;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum ResultConstant {

    SUCCESS(0, "操作成功"),
    FAIL(1, "操作失败"),
    PARAM_VALID_FAIL(2, "表单参数验证失败"),
    NOAUTH(401, "未登录"),
    NOAUTHIR(403, "资源权限不足"),
    NOFOUND(404, "未找到资源"),
    ;

    //状态码
    private int code;
    //消息
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
